<?php


namespace app\common\message;


use think\Request;

class SuccessMessage
{
    public $msg = 'ok';
    public $code = 0;
    public $request_url = '';
    public $data = null;

    public function __construct($data, $msg='ok', $code = 0)
    {
        $this->request_url = Request::instance()->url();
        $this->data = $data;
        $this->msg = $msg;
        $this->code = $code;
    }
}